
/**
 * Predefined variables
 * Name = iEventManager
 * DateTime = Fri Feb 11 2022 10:26:52 GMT+0800 (中国标准时间)
 * Author = Shioho
 * FileBasename = iEventManager.ts
 * FileBasenameNoExtension = iEventManager
 * URL = db://assets/shioho/scripts/event/api/iEventManager.ts
 * ManualUrl = https://docs.cocos.com/creator/3.4/manual/zh/
 *
 */

export default interface iEventManager<TEvent> {
    addObserver(eventType: TEvent, observer: Function);
    removeObserver(eventType: TEvent, observer: Function);
    dispatch(eventType: TEvent, ...args);
    clear();
}
